package com.test.dao;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.SortedMap;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import com.test.bean.Employee;

public interface EmployeeDao {
	public Employee getEmployeeById(Integer id);

	public int insertEmployeed(Employee employee);

	public int insertEmployeed1(Employee employee);

	public int updateEmployeed(Employee employee);

	public List<Employee> findAllEmployeed();

	public int deleteEmployeed(Employee employee);

	public Employee getEmployeeByIdAndLastName(String id, String lastName);

	public Employee getEmployeeByIdAndLastNameByParam(@Param("tableName") String tableName, @Param("id") String id,
			@Param("lastName") String lasName);

	public Employee getEmployeeByIdAndLastMap(HashMap<String, Object> map);

	public Set<Employee> getEmployeeByLastName(String lastName);

	@MapKey("createDate") //看看能不能根据指定的key 进行排序 这个好像还不行
	public SortedMap<Date, Employee> geEmploySortedMap();

	@MapKey("id")// 告诉mybatis 以哪个字段为key 进行分装map
	public Map<Integer, Employee> geEmployeetMap();

}
